package cn.wolfcode.luowowo.service;

import cn.wolfcode.luowowo.domain.Travel;
import cn.wolfcode.luowowo.query.TravelQuery;
import org.springframework.data.domain.Page;

import javax.servlet.http.HttpServletRequest;
import java.util.List;


public interface ITravelService {
    Travel get(String id);
    //分页查询
    Page<Travel> query(TravelQuery qo);

    void delete(String id);
    List<Travel> list();

    List<Travel> viewnumTop3(String destId);

    void changeState(String id, int state);

    void update(Travel travel,HttpServletRequest request);

    void save(Travel travel,HttpServletRequest request);

    List<Travel> findByDestName(String destName);
}
